package org.idea.qiyu.framework.demo.apm.servlet.user.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.idea.qiyu.framework.demo.apm.servlet.po.User;

import java.util.List;

/**
 * @Author linhao
 * @Date created in 4:38 下午 2021/7/18
 */
@Mapper
public interface UserDao {

    @Select("select * from t_user")
    List<User> selectAll();

    @Select("select * from t_user limit #{size}")
    List<User> selectInLimit(@Param("size") int limit);
}
